from tensorboard import program

log_dir = "G:\\the_3_sci\\unet_cig\\logs_opt_part_single\\loss_2023_08_17_08_49_51"

# log_dir = "G:\\the_3_sci\\unet_cig\\logs_opt_part_single"

tb = program.TensorBoard()
tb.configure(argv=[None, '--logdir', log_dir])
url = tb.launch()

print("TensorBoard is available at:", url)